package com.sc.web.gwt.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class AgentWidgetPlace extends Place {

    private static final String TOKEN = "agentwidget";

    @Override
    public boolean equals(Object obj) {
        return obj instanceof AdministratorWidgetPlace;
    }

    @Override
    public int hashCode() {
        return TOKEN.hashCode();
    }

    public static class Tokenizer implements PlaceTokenizer<AgentWidgetPlace> {
        public AgentWidgetPlace getPlace(String token) {
            return new AgentWidgetPlace();
        }

        public String getToken(AgentWidgetPlace place) {
            return TOKEN;
        }
    }
}
